package com.taxi.driver.module.account.info;

import android.os.Bundle;
import android.support.v4.app.Fragment;

import com.taxi.driver.R;
import com.taxi.driver.common.BaseActivity;

/**
 * 功能描述：司机信息页（展示）
 */
public class DriverInfoActivity extends BaseActivity {

    DriverInfoFragment mDriverInfoFragment;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_driver_info);
        if (mDriverInfoFragment == null)
            addFragment(R.id.fragment_container, DriverInfoFragment.newInstance());
    }

    @Override
    public void onAttachFragment(Fragment fragment) {
        super.onAttachFragment(fragment);
        if (fragment instanceof DriverInfoFragment) {
            mDriverInfoFragment = (DriverInfoFragment) fragment;
        }
    }
    
}
